#! /bin/sh

/bin/mount -a

echo "
                             _    _  _       _  _  _                    
                            | |  | |(_)     (_)| |(_)                   
   ___   _ __    ___  _ __  | |__| | _  ___  _ | | _   ___  ___   _ __  
  / _ \ | '_ \  / _ \| '_ \ |  __  || |/ __|| || || | / __|/ _ \ | '_ \ 
 | (_) || |_) ||  __/| | | || |  | || |\__ \| || || || (__| (_) || | | |
  \___/ | .__/  \___||_| |_||_|  |_||_||___/|_||_||_| \___|\___/ |_| |_|
        | |                                                             
        |_|                                                             

"
for initscript in /etc/init.d/S[0-9][0-9]*
do
	if [ -x $initscript ] ;
	then
		echo "[RCS]: $initscript"
		$initscript
	fi
done
#/etc/rc.local
cd /app/ko
##bt1120
./load3516dv300 -i -yuv0 1
#di


sysctl -w net.ipv4.igmp_max_memberships=20
export LD_LIBRARY_PATH="/lib:/usr/lib:/usr/local/lib:/app/lib"
export PATH="$PATH:/bin:/usr/sbin:/usr/bin:/app/bin"
export TZ=UTC-8:00

sysctl -w net.core.rmem_max=26214400
sysctl -w net.core.rmem_default=8388608
sysctl -w net.core.wmem_max=16777216
sysctl -w net.core.wmem_default=16777216
/usr/sbin/ntpd &
#banding  some interrupts to cpu1
/usr/share/script/banding_cpu1_interrupt.sh

sh /usr/share/script/dial_switch.sh 
sh /usr/share/script/lcd_i2c3.sh
sh /usr/share/script/configmac.sh 
sh /usr/share/script/configwlan.sh
sh /usr/share/script/p3reset.sh
sh /usr/share/script/p3_led.sh
sh /usr/share/script/wifi_gpio_config.sh
sh /usr/share/script/wire_bak_set.sh
sleep 1s

#/root/bsp.exe &
watch -n  5 -t "sh /usr/share/script/wire.sh" & 
watch -n  5 -t "sh /usr/share/script/start.sh" & 
watch -n  7 -t "sh /usr/share/script/wifi.sh" &
watch -n  5 -t "sh /usr/share/script/watchuvc.sh" & 

crond &
/bin/sh /usr/share/script/addtask.sh

